import { http } from '@/utils/http'

//
export const getBasePlantsList = () => {
  return http.get('/business/base/plant/queryPlantDict')
}

// 获取tpm状态列表
export const getTpmStatusList = () => {
  return http.get('/system/dict/data/type/tmp_status')
}

// 获取tpm列表
export const getTpmList = (data) => {
  return http.get('/device/ems/deviceTmp/list', data)
}

// 获取厂区列表
export const getFactoryList = () => {
  return http.get('/business/base/plant/queryPlantDict')
}

// 获取平台列表
export const getPlatformList = () => {
  return http.get('/system/dict/data/type/platform')
}

// 新增tpm
export const addTpm = (data) => {
  return http.post('/device/ems/deviceTmp/appInsert', data)
}
// 保存上传的整改内容
export const saveTpmCorrection = (data) => {
  return http.post('/device/ems/deviceTmp/saveEvidence', data)
}
// 验证提交
export const verifySubmit = (data) => {
  return http.post('/device/ems/deviceTmp/testTmp', data)
}
